package com.xing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xing.DTO.RoleSaveDTO;
import com.xing.DTO.RoleUpdateDTO;
import com.xing.Utils.Result;
import com.xing.entity.SysRoleEntity;
import com.xing.utils.PageData;

import java.util.List;

public interface SysRoleService extends IService<SysRoleEntity> {

    PageData<SysRoleEntity> listByPage(Integer pageNum,Integer pageSize);

    Result saveRole(RoleSaveDTO roleSaveDTO);

    Result updateById(RoleUpdateDTO roleUpdateDTO);

    Result deleteById(Long id);

    List<SysRoleEntity> listAll();
}
